package cron

import (
	"github.com/robfig/cron"
	logging "github.com/sirupsen/logrus"
)

func CronInit() {

	go func() {
		crontab := cron.New()
		crontab.AddFunc("*/5 * * * * ?", myCronTask)
		crontab.Start()
	}()
}

func myCronTask() {
	logging.Info("cron test ...")
}
